package com.qs.core.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
import java.util.List;


/**
 * The persistent class for the gen_state_mst database table.
 * 
 */
@Entity
@Table(name="gen_state_mst")
public class GenStateMst implements Serializable {
	private static final long serialVersionUID = 1L;
	private String stateId;
	private String activeFlag;
	private String createdBy;
	private Date createdDt;
	private String stateName;
	private String updatedBy;
	private Date updatedDt;
	private List<GenZipMst> genZipMsts;

    public GenStateMst() {
    }


	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="STATE_ID")
	public String getStateId() {
		return this.stateId;
	}

	public void setStateId(String stateId) {
		this.stateId = stateId;
	}


	@Column(name="ACTIVE_FLAG")
	public String getActiveFlag() {
		return this.activeFlag;
	}

	public void setActiveFlag(String activeFlag) {
		this.activeFlag = activeFlag;
	}


	@Column(name="CREATED_BY")
	public String getCreatedBy() {
		return this.createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}


    @Temporal( TemporalType.DATE)
	@Column(name="CREATED_DT")
	public Date getCreatedDt() {
		return this.createdDt;
	}

	public void setCreatedDt(Date createdDt) {
		this.createdDt = createdDt;
	}


	@Column(name="STATE_NAME")
	public String getStateName() {
		return this.stateName;
	}

	public void setStateName(String stateName) {
		this.stateName = stateName;
	}


	@Column(name="UPDATED_BY")
	public String getUpdatedBy() {
		return this.updatedBy;
	}

	public void setUpdatedBy(String updatedBy) {
		this.updatedBy = updatedBy;
	}


    @Temporal( TemporalType.DATE)
	@Column(name="UPDATED_DT")
	public Date getUpdatedDt() {
		return this.updatedDt;
	}

	public void setUpdatedDt(Date updatedDt) {
		this.updatedDt = updatedDt;
	}


	//bi-directional many-to-one association to GenZipMst
	@OneToMany(mappedBy="genStateMst", fetch=FetchType.EAGER)
	public List<GenZipMst> getGenZipMsts() {
		return this.genZipMsts;
	}

	public void setGenZipMsts(List<GenZipMst> genZipMsts) {
		this.genZipMsts = genZipMsts;
	}
	
}